Skip to content

Comments

Support external browser containers by connecting via CDP#152

Draft
hotzen wants to merge 3 commits intospacedriveapp:mainfrom
hotzen:external-browser
Draft

Support external browser containers by connecting via CDP#152
hotzen wants to merge 3 commits intospacedriveapp:mainfrom
hotzen:external-browser

Conversation

@hotzen
Copy link
Contributor

@hotzen hotzen commented Feb 22, 2026

Add connect_url to BrowserConfig so agents can connect to an external chromedp/headless-shell container via CDP instead of launching a local Chrome process.

  • Workers share the container (one tab each);
  • Browser Cntainer is managed externally, e.g. Docker Compose.

Config (src/config.rs)

  • Added connect_url: Option to BrowserConfig
  • handle_launch() branches: Browser::connect() for external, Browser::launch() for local
  • handle_close() drops the struct without sending CDP Browser.close for external browsers (sending it would kill the shared sandbox and all other workers' tabs)

Docs (docs/docker.md)

  • Added "External Browser" section with compose examples: host+Docker, both-in-Docker, per-agent dedicated sandboxes

@jamiepine
Copy link
Member

Woah! Love this

@hotzen
Copy link
Contributor Author

hotzen commented Feb 23, 2026

next: testing

@hotzen hotzen changed the title External browser Support external browser containers by connecting via CDP Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants